home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 2
/
Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso
/
Pearls
/
tex
/
ARCHIVES
/
pbmtopk.lzh
/
pbmtopk
/
src
/
amiga.diff
next >
Wrap
Text File
|
1992-05-16
|
2KB
|
74 lines
Small note: The max -> max1 change in pbmtopk.c is a workaround for a minor
DICE cpp bug (a macro `max(something)' prevents the use of a variable `max').
*** pbmtopk.c.orig Tue May 12 19:43:04 1992
--- pbmtopk.c Sat May 16 04:20:13 1992
***************
*** 8,14 ****
--- 8,21 ----
#include <pbm.h>
#include <ctype.h>
+ #ifdef A_FORCEPROTO
+ #undef A_FORCEPROTO
+ /* This source is a complete mess. It looks like a direct Pascal->C
+ conversion. I don't even want to try to fully prototype it.
+ I would end up changing half the stuff. */
+ #else /* A_FORCEPROTO */
extern double atof();
+ #endif /* A_FORCEPROTO */
#define MAXPKCHAR 256
#define MAXOPTLINE 200
***************
*** 126,139 ****
#define add_tfmitalic(v) (add_tfmtable(italictab, &numitalic, v, MAXITALICTAB,\
"Italic correction"))
byte
! add_tfmtable(table, count, value, max, name)
! integer *table, *count, value, max;
char *name;
{
integer i;
for (i = 0; i < *count; i++) /* search for value in tfm table */
if (table[i] == value) return (byte)i;
! if (*count >= max) {
fprintf(stderr, "Too many values in %s table!\n", name) ;
jumpout();
}
--- 133,146 ----
#define add_tfmitalic(v) (add_tfmtable(italictab, &numitalic, v, MAXITALICTAB,\
"Italic correction"))
byte
! add_tfmtable(table, count, value, max1, name)
! integer *table, *count, value, max1;
char *name;
{
integer i;
for (i = 0; i < *count; i++) /* search for value in tfm table */
if (table[i] == value) return (byte)i;
! if (*count >= max1) {
fprintf(stderr, "Too many values in %s table!\n", name) ;
jumpout();
}
*** pktopbm.c.orig Tue May 12 19:42:14 1992
--- pktopbm.c Sat May 16 04:12:31 1992
***************
*** 360,366 ****
}
}
filename[car] = NULL;
! pbm_writepbm(fp, bitmap, cwidth, cheight) ;
pbm_freearray(bitmap, cheight) ;
if (fp != stdout) (void)fclose(fp) ;
}
--- 360,366 ----
}
}
filename[car] = NULL;
! pbm_writepbm(fp, bitmap, cwidth, cheight, 0) ;
pbm_freearray(bitmap, cheight) ;
if (fp != stdout) (void)fclose(fp) ;
}